FROM centos:8

WORKDIR /root
RUN yum update -y && useradd es && chmod 777 -R . && yum install -y \
    telnet
VOLUME  /home/xieqihui/soft:/root/soft

CMD [ "/root/soft/elasticsearch_master/bin/elasticsearch -p pid -d" ]